FROM debian:13.1-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources && \
apt-get -y update && apt-get install -y  g++ && rm -rf /var/lib/apt/lists/*
ENV TZ=Asia/Shanghai
CMD ["g++","-v"]

# docker build -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gplusplus:14 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gplusplus:14
# docker run -it --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gplusplus:14 bash
# docker run -it --rm -v /mnt/d/wsl/my_gcc:/usr/local/my_gcc registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gplusplus:14 bash
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/gplusplus:14
# g++ -o hello /usr/local/my_gcc/Hello.cpp -std=c++20
# /usr/local/my_gcc/hello